package com.lgCore.util;

public class ExceptionUtil {
    /**
     * 返回异常详情信息（全部）
     *
     * @param ex
     * @return
     */
    public static String ExceptionDetailAll(Exception ex) {
        StringBuffer message = new StringBuffer();
        StackTraceElement[] trace = ex.getStackTrace();
        message.append(ex.toString());
        for (StackTraceElement s : trace) {
            message.append("\tat " + s + "\r\n");
        }
        return message.toString();
    }

}
